<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组遍历</title>
	</head>
	<body>
		<script>
			var arr1=new Array(1,2,3,4);
			var arr2=[5,6,7,8];
			
			for(var i=0;i<arr1.length;i++){
				console.log(arr1[i]);
			}
			for(var j=0;j<arr2.length;j++){
				console.log(arr2[j]);
			}
		</script>
	</body>
</html>
